<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery.min.js"></script>
    <script src="jquery.ui.widget.js"></script>
    <script src="jquery.iframe-transport.js"></script>
    <script src="jquery.fileupload.js"></script>
</head>
<body>
    <input type="file" name="lifePhoto" id="lifePhoto" data-url="fileupload.php">
    <script>
        $(function () {
            $('#lifePhoto').fileupload({
                dataType: 'json',
                done: function (e, data) {
                    console.log(data);
                    console.log(e);
                }
            });
        });
    </script>
</body>
</html>